package com.aaa.dao;


import com.aaa.entity.F_returns;
import com.aaa.entity.Fcart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

public interface FReturnsMapper extends BaseMapper<F_returns> {
    @Update("UPDATE f_order SET state=#{state} WHERE id=#{id}")
    int up(Integer state,Integer id);
    @Insert("insert into f_returns(id,  f_order, kuaidi, parcelid, f_user, returntime, remark) VALUES (#{id},#{f_order},#{kuaidi},#{parcelid},#{f_user},#{returntime},#{remark})")
    int add(F_returns returns);
}
